package cn.iocoder.yudao.module.wine.controller.app.stockinfo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.*;

@Schema(description = "用户 APP - 出入库信息新增/修改 Request VO")
@Data
public class AppStockInfoSaveReqVO {

    @Schema(description = "序列", requiredMode = Schema.RequiredMode.REQUIRED, example = "14370")
    private Long id;

    @Schema(description = "创建用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "426")
//    @NotNull(message = "创建用户ID不能为空")
    private Long userId;

    @Schema(description = "存放仓库ID（store表主键）", requiredMode = Schema.RequiredMode.REQUIRED, example = "16682")
    @NotNull(message = "存放仓库ID（store表主键）不能为空")
    private Long storeId;

    @Schema(description = "操作类型：0--入库，1--出库", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "操作类型：0--入库，1--出库不能为空")
    private Integer operateType;

    @Schema(description = "供求信息ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "29291")
//    @NotNull(message = "供求信息ID不能为空")
    private Long infoId;

    @Schema(description = "信息名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @NotEmpty(message = "信息名称不能为空")
    private String infoName;

    @Schema(description = "信息编码(无可不填)")
    private String infoSn;

    @Schema(description = "库存数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "库存数量不能为空")
    private Integer infoNums;

    @Schema(description = "信息条码(扫码条码)")
    private String infoBn;

    @Schema(description = "信息备注")
    private String infoDesc;

    @Schema(description = "出库状态：0--新建出/入库单，1--允许出/入库，2--拒绝出/入库", example = "1")
    private Integer infoStatus;

    @Schema(description = "添加方式：0--手动出/入库，1--扫码导出/入，2--批量导出/入", example = "1")
    private Integer addType;

    @Schema(description = "扫描方式：0--正常扫描，1--重复扫描", example = "2")
    private Integer scanStatus;

    @Schema(description = "关联订单编号(出库)", example = "26743")
    private Long orderId;

    @Schema(description = "公司", example = "公司")
    private String company;

    @Schema(description = "电话", example = "电话")
    private String mobile;

    @Schema(description = "用户名", example = "用户名")
    private String username;

}
